<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
	
<ui:composition template="/WEB-INF/template/basicTemplate.xhtml">

	<ui:define name="content">
		<head>
		<title>
			<h:outputText value="#{msg.updateEmployees}" />
		</title>
		</head>
		<br />
		<f:event listener="#{angajatBean.verifyA()}" type="preRenderView"></f:event>
		
		<h:form>
			<div align="center">
			<h2></h2>
			<h:panelGrid columns="2" styleClass="inner-table login">
			<h:outputLabel value="#{msg.lastname}:" />
			<h:inputText value="#{angajatBean.angajatiUpd.lastname}" />

			<h:outputLabel value="#{msg.firstname}:"/>
			<h:inputText value="#{angajatBean.angajatiUpd.firstname}" />
			
			<h:outputLabel value="#{msg.username}:"/>
			<h:inputText value="#{angajatBean.angajatiUpd.username}" />
			
			<h:outputLabel value="#{msg.password}:"/>
			<h:inputText value="#{angajatBean.angajatiUpd.password}" />
			
			<h:outputLabel value="#{msg.email}:"/>
			<h:inputText value="#{angajatBean.angajatiUpd.email}" />
			
			<h:outputLabel value="#{msg.emplDate}:"/>
			<h:inputText value="#{angajatBean.angajatiUpd.employment_date}" />
			
			<h:outputLabel value="#{msg.departDate}:"/>
			<h:inputText value="#{angajatBean.angajatiUpd.departure_date}" />
			
			<h:outputLabel value="#{msg.birthdate}:"/>
			<h:inputText value="#{angajatBean.angajatiUpd.dateofbirth}" />
			
			<h:outputLabel value="#{msg.lastMedicalVisit}:"/>
			<h:inputText value="#{angajatBean.angajatiUpd.lastmedicalvisit}" />
			
			<h:outputLabel value="#{msg.department}"/>
			<h:inputText value="#{angajatBean.angajatiUpd.department}" />
			
			<h:outputLabel value="#{msg.salary}:"/>
			<h:inputText value="#{angajatBean.angajatiUpd.net_salary}" />
			
			<h:outputLabel value="#{msg.varPart}:"/>
			<h:inputText value="#{angajatBean.angajatiUpd.var_part}" />
			
			<h:outputLabel value="#{msg.emplType}:"/>
			<h:inputText value="#{angajatBean.angajatiUpd.empl_type}" />
			
			<h:outputLabel value="#{msg.teamLeader}:"/>
			<h:inputText value="#{angajatBean.angajatiUpd.teamleaderro}" />
			
			<h:outputLabel value="#{msg.contactperson}:"/>
			<h:inputText value="#{angajatBean.angajatiUpd.contactpersonde}" />
			
			<h:outputLabel value="#{msg.position}:"/>
			<h:inputText value="#{angajatBean.angajatiUpd.position}" />
			
			<h:outputLabel value="#{msg.rank}:"/>
			<h:inputText value="#{angajatBean.angajatiUpd.rank}" />
			
			<h:outputLabel value="#{msg.profile}:"/>
			<h:inputText value="#{angajatBean.angajatiUpd.profile}" />
			
			<h:outputLabel value="#{msg.prosisNr}:"/>
			<h:inputText value="#{angajatBean.angajatiUpd.prosisnr}" />
			
			<h:outputLabel value="#{msg.selectedLanguage}:"/>
			<h:inputText value="#{angajatBean.angajatiUpd.selected_language}" />
			
			
			</h:panelGrid>
			<h:commandButton 
				value="#{msg.update}" styleClass="button" action="#{angajatBean.update()}" />
			<h:commandButton
				value="#{msg.back}" styleClass="button" action="angajatiRead"  immediate="true"/> <br></br>
			<h:commandButton
				value="#{msg.logout}" styleClass="button" action="#{adminBean.logOut()}"  immediate="true"/> <br></br>
			
			</div>
			
		</h:form>
		
	</ui:define>
	
</ui:composition>





</html>